//package com.example.demo.dao;
//
//import com.example.demo.bean.User;
//import org.apache.ibatis.annotations.*;
//
//import java.util.List;
//
//@Mapper
//public interface UserMapper {
//
//    @Select("select * from user where id = #{id}")
//    public User selectUserById(int id);
//
//    @Select("select * from user ")
//    public List<User> selectUser();
//
//    @Select("select * from user where userName = #{userName}")
//    public List<User> selectUserByName(String userName);
//
////    $和#的区别：#会自动匹配类型（张三），$需要拼接：（“张三”）
//    @Insert("insert into user(userName,userAge,userAddress) values (#{userName},#{userAge},#{userAddress})")
//    public void addUser(User user);
//
//    @Update("update user set userName=#{userName},userAge=#{userAge},userAddress=#{userAddress} where id=#{id}")
//    public void updateUser(User user);
//
//    @Delete("delete from user where id=#{id}")
//    public void deleteUser(int id);
//}
